package org.doc;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(indexName = "test",type = "emp")
public class Empdoc {
    @Id
    private Long id;

    @Field
    private String name;

    @Field(analyzer = "ik_smart",searchAnalyzer = "ik_smart")
    private String intro;
}
